package cn.zhz.service.role;

import cn.zhz.dao.role.RoleMapper;
import cn.zhz.entity.Role;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("roleService")
public class RoleServiceImpl implements RoleService{

    @Resource
    public RoleMapper roleMapper;

    @Override
    public List<Role> getRoleList() {
        List<Role> roleList = null;
        try {
            roleList = roleMapper.getRoleList();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return roleList;
    }
}
